#ifndef _DEBUG_WIRAMA_COMMUNICATION_H_
#define _DEBUG_WIRAMA_COMMUNICATION_H_


/*for CRC*/
#define CRC16_WORD          0xA001
#define CRC_CCITT_WORD      0x8408
#define INI_CRC16_WORD      0x0

#define GET_STATISTICS_START		0
#define GET_STATISTICS_NEXT			1
#define GET_SETTINGS_START			0
#define GET_SETTINGS_NEXT			1

#define RCG_APP_LISTEN_PORT			7237

#define FINDER_SERVER_PORT		5990
#define FINDER_CLIENT_PORT		1330

#define FINDER_GET_UUID 0x0301



extern int rcg_fd;


int connect_to_rcg(void);
int disconnect_rcg(void);
int get_statistics(char *statistics, int len, int cmd);
int get_rcg_wirama_settings(char *setting, int len, int cmd);
int send_wirama_command(const char *command);
int get_wirama_response(char *response,int len);
unsigned short calculate_CRC( unsigned short Type,const unsigned char *pData,unsigned long Len,
									  unsigned short CRC );


#endif

